home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d1
/
joymouse.arc
/
JOYMOUSE.DOC
< prev
next >
Wrap
Text File
|
1985-07-18
|
4KB
|
73 lines
JOYMOUSE - BY Donald L. Roy (PennRR AT MHVSPA)
INTERNAL USE ONLY 10/23/84
Updates:
Version 0.4 - Calls previous occupant of IRPT Vector 1C when through.
JOYMOUSE no longer must be early in an AUTOEXEC.
Allows another program to use the other stick port on
each timer tick. (I use a modified version of SPEEDKEY
for the KOALA PAD on port 2 via a Y adapter cable.)
Version 0.3 - Adds the "3rd button" as in most 2 button mice. Pressing
both buttons simultaniously will insert an ALT-L into the
keyboard buffer.
Fixes problem of keyboard buffer having been loaded with
thusfar unused 'arrow keys' at time stick is returned to
neutral. Each return to neutral now clears the buffer.
Version 0.2 - First level
Operation:
This is a program that allows a self centering JOYSTICK to be used for
the propose of adding 'arrow keys' to the keyboard buffer. Any
application program that expects arrow keys as input should work with
this program. It has been tested with the Personal Editor and Multiplan
in a DOS 2.0 environment.
The program works by installing itself at execution time as interupt 1C
which is the timer interupt. From then on, at each timer tick the
joystick is read and action taken accordingly. Subsequent executions of
the JOYMOUSE.COM program will ask the user to define the buttons on
the joystick. These definitions are then put into the already working
copy of the program and the present execution exits leaving the
original copy operating with the new button values. The joystick values
are always arrow keys and can not be changed.
At the original execution no request for button definitions is
requested. The default definitions are button 1 as ALT-B and button 2
as ALT-C. Pressing both buttons at the same time yields ALT-L. I find
these most handy for PE.
The program will add arrow keys to the keyboard buffer at 9/sec when
the joystick is slightly off center and at 54/sec if the stick is
farther off center. The buttons will go typamatic at the rate 3/sec if
they are held down.
A method for changing button defaults is as follows:
1) Install JOYMOUSE as the last item using IRPT 1C.
2) Change the key defs as specified above with a 2nd execution.
3) Rename JOYMOUSE.COM to X.X
4) Go into DEBUG on X.X
A) -D 0:0
Hex bytes 72-73 are the CS of the presently resident
copy of the JOYMOUSE program in reverse order.
B) -D 7372:100 (where 73 is byte 73 and 72 is byte 72)
C) If you are in the right place you will see the word
JOYMOUSE at offset 103.
D) Note the word long code for button 1 at offset 134-5
E) Note the word long code for button 2 at offset 136-7
F) Note the word long code for button 2 at offset 138-9
G) -D CS:100
H) The data area of X.X will be displayed
I) Edit the offsets 134-9 new values.
J) Write ( -W ) back to disk.
5) Rename back to JOYMOUSE.COM
6) You must re-boot to try the new defaults, however the present
copy now has the same new values and is useable.